package indi.zhifa.recipe.bailan.framework.queue.bean;


import indi.zhifa.recipe.bailan.framework.queue.entity.MsgHandlerInfo;

import java.util.HashMap;
import java.util.Map;

public abstract class MsgHandlerMap {
    protected Map<Integer, MsgHandlerInfo> msgHandlerMapData;

    protected MsgHandlerMap(){
        msgHandlerMapData = new HashMap<>();
        init();
    }

    protected abstract void init();

    public MsgHandlerInfo getHandler(Integer pMsgId){
        return msgHandlerMapData.get(pMsgId);
    }
}
